package com.frank.subject.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.frank.subject.infra.basic.entity.SubjectMapping;
import com.frank.subject.infra.basic.mapper.SubjectMappingMapper;
import com.frank.subject.infra.basic.service.SubjectMappingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 题目分类关系表(SubjectMapping)表服务实现类
 *
 * @author makejava
 * @since 2024-01-23 15:06:54
 */
@Service("subjectMappingService")
public class SubjectMappingServiceImpl extends ServiceImpl<SubjectMappingMapper, SubjectMapping> implements SubjectMappingService {

    private final SubjectMappingMapper subjectMappingMapper;

    public SubjectMappingServiceImpl(SubjectMappingMapper subjectMappingMapper) {
        this.subjectMappingMapper = subjectMappingMapper;
    }

    @Override
    public List<Long> queryLabelId(SubjectMapping subjectMapping) {
        return this.subjectMappingMapper.queryDistinctLabelId(subjectMapping);
    }

}
